<?php

namespace app\common\services;
//所以服务的基类
class BaseServices
{
    protected static $_error_msg = null;
    protected static $_error_code = null;

    public static function _err($msg,$code = -1)
    {
        self::$_error_msg = $msg;
        self::$_error_code = $code;
        return false;
    }

    public static function getErrMsg()
    {
        return self::$_error_msg;
    }

    public static function getErrCode()
    {
        return self::$_error_code;
    }
    public static function getRootPath()
    {
        return dirname(\Yii::$app->vendorPath);
    }
}
